package vip.xiaonuo.biz.modular.notice.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 信息内容(InfoNews)表实体类
 *
 * @author h
 * @since 2024-10-25 15:16:14
 */
@Data
@TableName("tb_news_info")
@ApiModel(value = "信息内容", description = "信息内容")
public class NewsInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "内容主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String newsId;

    @ApiModelProperty(value = "栏目名称")
    private String columnName;

    @ApiModelProperty(value = "信息标题")
    private String title;

    @ApiModelProperty(value = "信息内容")
    private String content;

    @ApiModelProperty(value = "封面图片地址")
    private String coverUrl;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "是否置顶(0=否,1=是)")
    private Integer needTop;

    @ApiModelProperty(value = "来源")
    private String sourceName;

    @ApiModelProperty(value = "浏览量")
    private Integer pageviews;

    @ApiModelProperty(value = "简介")
    private String synopsis;

    @ApiModelProperty(value = "状态(0=未发布,1=发布)")
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer status;

    @ApiModelProperty(value = "版本")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "发布时间")
    private Date pubTime;

}
